<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/common/commonCss.jsp" />
<jsp:include page="/common/commonJs.jsp" />
<script src="${basePath}commonJs/jquery.ztree.all.js"></script>
<script type="text/javascript">
	var basePath = "${basePath}";
	var fkTskId = "${takeId}";
</script>
<script type="text/javascript" src="${basePath}commonJs/stock/stock_addTake.js"></script>
<title>嘉童游乐中心-库存盘点清单</title>
</head>
<body class="bg">
<div class="content m_auto">
	<div class="content_l mt10">
    	<ul>
        	 <shiro:hasPermission name="StockGoodsIn/toStock_goodsIn.shtml">
       		<li><a href="${basePath}StockGoodsIn/toStock_goodsIn.shtml"><i class="nav_icon_b"></i><br>商品入库</a></li>
			</shiro:hasPermission>
		<shiro:hasPermission name="StockQuery/toStockQuery.shtml">
			<li><a href="${basePath}StockQuery/toStockQuery.shtml"><i class="nav_icon_b"></i><br>库存查询</a></li>
			</shiro:hasPermission>
		<shiro:hasPermission name="StockGoodsOut/toStockGoodsOut.shtml">
			<li><a href="${basePath}StockGoodsOut/toStockGoodsOut.shtml"><i class="nav_icon_b"></i><br>商品出库</a></li>
			</shiro:hasPermission>
		<shiro:hasPermission name="StockTaking/toStockTaking.shtml">
			<li class="content_hover"><a href="${basePath}StockTaking/toStockTaking.shtml"><i class="nav_icon_a"></i><br>库存盘点</a></li>
            </shiro:hasPermission>
		<shiro:hasPermission name="StockCorrect/toStockCorrect.shtml">
            <li><a href="${basePath}StockCorrect/toStockCorrect.shtml"><i class="nav_icon_f"></i><br>库存调整</a></li>
        </shiro:hasPermission>
        </ul>
    </div>
    <div class="content_r mt10">
    	<div class="p20">
    	<div class="file_single_dl f14 fixed">
    	<dl class="fixed" style="overflow:hidden">
                <dd ><label>库存盘点清单</label></dd> 
            </dl>
            <hr>
       		 <dl class="fixed" style="overflow:hidden">
                <dd ><label>库存盘点编号：</label>${takeId}</dd>
                 <dd><label>盘点时间：</label>${createTime}</dd>
                  <dd><label>盘点人：</label>${userName}</dd>
            </dl>
            <hr>
        	<dl class="fixed" style="overflow:hidden">
            	<dd><label>盘点仓库：</label>${branName} </dd>
            </dl>
            <hr>
             <dl class="fixed" style="overflow:hidden" >
                <dd><label>已盘点商品项数：</label><span id="prdCnt"></span></dd> 
            </dl>
             
        </div>
        <div class="taking">
            <div class="taking_l" style="width: 200px !important;">
                <div  class="ztree m10" id="sptree" style="overflow-y: auto;width: 180px; height: 412px;"></div>
            </div>
            <div class="taking_r">
             <div id="scrollTable" style="width:880px !important">
                <table class="table">
                   <col width="45px"></col>
                    <col width="130px"></col>
                    <col width="110px"></col>
                    <col width="70px"></col>
                    <col width="50px"></col>
                    <col width="40px"></col>
                    <col width="70px"></col>
                    <col width="130px"></col>
                    <col width="80px"></col>
                    <col></col>
                    <tbody>
                    <tr>
                        <th>序号</th>
                        <th>商品编号</th>
                        <th>商品名称</th>
                        <th>商品分类</th>
                        <th>规格</th>
                        <th>单位</th>
                        <th>仓库数量</th> 
                        <th>盘点实际数量</th> 
                         <th>差异数量</th> 
                         <th>备注</th> 
                    </tr>
                    </tbody>
                </table>
                <div style="height:372px !important;">
                <table class="table" id="addStockTakeTable">
                <col width="45px"></col>
                <col width="130px"></col>
                <col width="110px"></col>
                <col width="70px"></col>
                <col width="50px"></col>
                <col width="40px"></col>
                <col width="70px"></col>
                <col width="130px"></col>
                <col width="80px"></col>
                <col></col>
                <tbody id="tbody">
                  
                </tbody>
                </table>
                </div>
            </div>
            </div>
        </div>
        <!-- Form表单 -->
         		<form action="" id="stockQueryForm" method="post">
					<input type="hidden" name="pageNo" value="1">
					<input type="hidden" name="pageSize" value="10">
					<input type="hidden" name="pkPrdId" id="pkPrdId">
					<input type="hidden" name="prdName" id="prdName">
					<input type="hidden" name="selectId" id="selectId">
					<input type="hidden" name="prdList" id="prdList">
					<input type="hidden" name="fkTskId" value="${takeId}">
					<input type="hidden" name="resverseTypes" id="resverseTypes"/>
				</form>
				<form action="" id="doTakeStockFrom" method="post">
					<input type="hidden" name="fkTskId" value="${takeId}">
					<input type="hidden" name="takestkContent" id="takestkContent">
				</form>
		<!-- Form表单 -->
        <div class="clear"></div>
        <!----底部按钮----->
        <div class="btm_btn mt10">
                <dl>
                    <dd><input class="btn" type="button" value="确定" onclick="doTakeStock();"></dd>
                    <dd><input class="btn" type="button" value="打印" ></dd>
                    <dd><input class="btn" type="button" value="返回" onClick="javascript:window.location.href='${basePath}StockTaking/toStockTaking.shtml'"></dd>
                </dl>
        </div>
        <!----底部按钮----->
		</div>
    </div>
</div>

</body>
</html>